package baidu.ui.events
{
    import flash.events.*;

    public class BUIEvent extends Event
    {
        public var data:Object;
        public static const SIZE_CHANGE:String="sizeChange";
        public static const POSITION_CHANGE:String="positionChange";
        public static const VISIABLE_CHANGE:String="visiableChange";
        public static const SELECTED_CHANGE:String="selectedChange";
        public static const LABEL_CHANGE:String="labelChange";
        public static const BUTTON_REPEAT:String="buttonRepeat";
        public static const ENTER:String="enter";

        public function BUIEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
        {
            super(type, bubbles, cancelable);
        }

        override public function toString():String
        {
            return formatToString("BUIEvent", "type", "bubbles", "cancelable");
        }

        override public function clone():Event
        {
            var evt:BUIEvent=new BUIEvent(type, bubbles, cancelable);
            evt.data=data;
            return evt;
        }

    }
}
